<section>
<?php
$title = 'Payment confirm';
$this->headTitle($title);
?>
<h3><?php echo $this->escapeHtml($title);?></h3>
<hr>
<p class="p"> <b>"Order number: <?php echo $this->escapeHtml($order->id); ?>"</b></p>
<p class="p"> <b>"Status: <?php echo $this->escapeHtml($order->status); ?>"</b></p>
<hr>
</section>

<table border="3px" >
	<tr>
		<th align="left"> Shipping/Billing information</th>	
	</tr>
	<tr>
		<td><?php echo $order->first_name.' '.$order->last_name ?> <br> 
		<?php echo $order->mail?> <br>
		<?php echo $order->ship_to_street?> <br>
		<?php echo $order->ship_to_city?> <br>
		<?php echo $order->ship_to_state?> <br>
		<?php echo $order->ship_to_zip?> <br>
		</td>
				
	</tr>
 </table>
<hr>
<p></p>
<p class="p"> <b> <?php echo $this->escapeHtml('Order detail'); ?></b></p>

<table border="3px" >
	<tr>
		<th width="40%" align="center"> Name</th>
		<th width="15%" align="center"> Quantity</th>
		<th width="20%" align="center"> Unit cost</th>
		<th align="center"> Total</th>
	</tr>
<?php //foreach ($Details as $Detail) {
?>
	<tr>
		<td align="left"><?php echo $product->name; ?></td>
		<td align="left"><?php echo $order->qty; ?></td>
		<td align="left"><?php echo $product->cost; ?></td>
		<td align="left"><?php echo $order->total; ?></td>
		
	</tr>
<?php
//}
?>
</table>
 
<?php
 $url = $this->url('estore', array(
     'action' => 'index',
 ));
 ?>
<hr>
<p></p> 
<a href="<?php echo $url ?>" class="btn btn-default btn-lg">Return to products</a>  
 

